﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ForumDomainModels
{
    public class User
    {   
        public int Id { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public int Age { get; set; }
        public byte[] Photo { get; set; }
        public bool IsAdmin{ get; set; }
        public DateTime DateRegistered { get; set; }

        public User()
        {}

        public User(string username, string password)
        {
            this.Id = default(int);
            this.Username = username;
            this.Password = password;
            this.FirstName = default(string);
            this.LastName = default(string);
            this.Age = default(int);
            this.Photo = null;
            this.IsAdmin = default(bool);
            this.DateRegistered = default(DateTime);
        }
    }
}
